From: Wei Liu Date: Thu, 30 Jul 2015 16:11:29 +0000 (+0100) Subject: xl/libxl: disable PV vNUMA X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2657 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=27524b5e1556067545ee19b3f482ec755aa82de3;p=xen.git xl/libxl: disable PV vNUMA Update xl manual and disable PV vNUMA in libxl. Signed-off-by: Wei Liu Reviewed-by: Dario Faggioli Acked-by: Ian Campbell --- diff --git a/docs/man/xl.cfg.pod.5 b/docs/man/xl.cfg.pod.5 index c78c3ba472..80e51bba5e 100644 --- a/docs/man/xl.cfg.pod.5 +++ b/docs/man/xl.cfg.pod.5 @@ -261,6 +261,9 @@ Specify virtual NUMA configuration with positional arguments. The nth B in the list specifies the configuration of nth virtual node. +Note that virtual NUMA for PV guest is not yet supported, because +there is an issue with cpuid handling that affects PV virtual NUMA. + Each B is a list, which has a form of "[VNODE_CONFIG_OPTION,VNODE_CONFIG_OPTION, ... ]" (without quotes). diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c index 4f2f50b9bd..2348ffcf39 100644 --- a/tools/libxl/libxl_create.c +++ b/tools/libxl/libxl_create.c @@ -860,6 +860,15 @@ static void initiate_domain_create(libxl__egc *egc, goto error_out; } + /* PV vNUMA is not yet supported because there is an issue with + * cpuid handling. + */ + if (d_config->c_info.type == LIBXL_DOMAIN_TYPE_PV && + d_config->b_info.num_vnuma_nodes) { + LOG(ERROR, "PV vNUMA is not yet supported"); + goto error_out; + } + ret = libxl__domain_create_info_setdefault(gc, &d_config->c_info); if (ret) { LOG(ERROR, "Unable to set domain create info defaults");